{include file='account/header.tpl'}
  <div class="breadcrumb">
            <span class="raquo"></span><a href="/">Главная</a>
            <span class="raquo"> &raquo; </span><a href="{geturl controller='account' action='index'}">Мой профиль</a>
			            <span class="raquo"> &raquo; </span><a href="{geturl controller='account' action='messages'}">Список диалогов  </a>  
    </div>
	<h1 class="prof-title">Обзор диалога </h1>


 <div class="dialogshow">
{foreach from=$dialog item='pm'}
    
	<div class="frendpole5 {if $pm->_author->getId()==$identity->id}flright{/if}" ><img src="{$pm->_author->photo}"></div>
	<div class="frendpole6 {if $pm->_author->getId()==$identity->id}flright{/if}" >{$pm->_author->first_name}</div>
	<div class="frendpole7 {if $pm->_author->getId()==$identity->id}margright{/if}" {if $pm->_author->getId()==$identity->id}flright{/if}>{$pm->text}</div>
	<div class="clear btblock"></div>
  
{foreachelse}
    Нет сообщений
{/foreach}
 </div>
  <form method='post' action='{geturl controller=account action=sendpm}'>
 <div class="dialogshow">
    <div class="frendpole8">
  <div class="frendpole9"><img src="{$user->photo}"></div>
{$user->first_name}
 </div>

<div class="frendpole7 margright">
    
   <textarea name='text' cols='50' rows='10' class="areatxt"></textarea>   
   </div>
   <div class="clear"></div>
      <input type='hidden' name='id' value='{$dialogger->getId()}' />
   <div class="frendpole10"><center><input name="" type="submit" value="Отправить сообщение" class="button pink fs14"></center></div>
   
</div>
    </form>
<div>
    
</div>
{include file='account/footer.tpl'}